package kz.pompei.OneGwt.cmodel;

import static kz.pompei.OneGwt.cmodel.CommonUtil.isEmpty;

import java.io.Serializable;

@SuppressWarnings("serial")
public class PersonDetails implements Serializable {
  private String id;
  private String surname;
  private String name;
  private String accountId;
  private boolean active;
  
  public String getId() {
    return id;
  }
  
  public void setId(String id) {
    this.id = id;
  }
  
  public String getSurname() {
    return surname;
  }
  
  public void setSurname(String surname) {
    this.surname = surname;
  }
  
  public String getName() {
    return name;
  }
  
  public void setName(String name) {
    this.name = name;
  }
  
  public String getAccountId() {
    return accountId;
  }
  
  public void setAccountId(String accountId) {
    this.accountId = accountId;
  }
  
  public boolean isActive() {
    return active;
  }
  
  public void setActive(boolean active) {
    this.active = active;
  }
  
  public boolean isComplete() {
    if (isEmpty( getSurname() )) return false;
    if (isEmpty( getName() )) return false;
    if (isEmpty( getAccountId() )) return false;
    return true;
  }
}
